import Vue from 'vue'
import {
  Menu,Submenu,MenuItem,MenuItemGroup,
  Container,Header,Aside,Main,Footer,
  Card,
  Form,FormItem,Input,Button,ButtonGroup,
  Radio,RadioGroup,RadioButton,
  Checkbox,CheckboxButton,CheckboxGroup,
  Row,Col,
  Notification,
  Message,
  MessageBox,
  Dropdown,DropdownMenu,DropdownItem,
  Select,Option,OptionGroup,
  Table,TableColumn,Pagination,
  Avatar,
  Tag,
  Tree,
  Switch,
  InputNumber,
  Carousel,CarouselItem,
  Cascader,CascaderPanel,
  DatePicker,
  Breadcrumb,BreadcrumbItem,
  Dialog,
  PageHeader,
  Alert,
  empty
} from 'element-ui'

const element = {
    install:function(){
        Vue.use(Menu),Vue.use(Submenu),Vue.use(MenuItem),Vue.use(MenuItemGroup),
        Vue.use(Container),Vue.use(Header),Vue.use(Aside),Vue.use(Main),Vue.use(Footer),
        Vue.use(Card),
        Vue.use(Form),Vue.use(FormItem),Vue.use(Input),Vue.use(Button),Vue.use(ButtonGroup),
        Vue.use(Radio),Vue.use(RadioGroup),Vue.use(RadioButton),
        Vue.use(Checkbox),Vue.use(CheckboxButton),Vue.use(CheckboxGroup),
        Vue.use(Row),Vue.use(Col),
        Vue.use(Dropdown),Vue.use(DropdownMenu),Vue.use(DropdownItem),
        Vue.use(Select),Vue.use(Option),Vue.use(OptionGroup),
        Vue.use(Table),Vue.use(TableColumn),Vue.use(Pagination),
        Vue.use(Avatar),
        Vue.use(Tag),
        Vue.use(Tree),
        Vue.use(Switch),
        Vue.use(InputNumber),
        Vue.use(Carousel),Vue.use(CarouselItem),
        Vue.use(Cascader),Vue.use(CascaderPanel),
        Vue.use(DatePicker),
        Vue.use(Breadcrumb),Vue.use(BreadcrumbItem),
        Vue.use(Dialog),
        Vue.use(PageHeader),
        Vue.use(Alert)
        Vue.use(empty)
        Vue.prototype.$notify = Notification
        Vue.prototype.$message = Message
        Vue.prototype.$confirm = MessageBox.confirm
        Vue.prototype.$alert = MessageBox.alert
        Vue.prototype.$prompt = MessageBox.prompt
    }
}

export default element